package org.news.web.domain.bo;

import org.news.web.domain.Tags;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import jakarta.validation.constraints.*;

/**
 * 标签业务对象 tags
 *
 * @author Gu Ci
 * @date 2024-03-23
 */
@Data
@AutoMapper(target = Tags.class, reverseConvertGenerate = false)
public class TagsBo{

    @NotNull(message = "标签id不能为空",groups = { EditGroup.class })
    private Long tagId;
    /**
     * 标签名称
     */
    @NotBlank(message = "标签名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String tagName;

    /**
     * 标签描述
     */
    @NotBlank(message = "标签描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String description;


}
